<?php
$database = include '../array_merge/database.php';
print_r($database);
var_export($database); // var_export函数打印出变量的php变量结构
$arr = var_export($database, true);
echo $arr;
function array_change(array $data, int $type = CASE_UPPER): array
{
    array_walk_recursive($data, function (&$value, $key, $type) {
        $action = $type == CASE_UPPER ? 'strtoupper' : 'strtolower';
        $value = $action($value);
    }, $type);
    return $data;
}

print_r(array_change($database));
file_put_contents('database.php', '<?php'.PHP_EOL.'return '.$arr.';');
